package com.chixing.day10.ExpectionsDemo;

public class ExceptionDemo {
    public static void main(String[] args) {
        int [] a = {10,20,30};
        System.out.println(a[4]); //ArrayIndexOutOfBoundsException  数组下标越界异常

        String s = null;
        s.length();   //NullPointerException  空指针异常

    }
}
